﻿using System;
using System.Xml.Serialization;

namespace Derrick.Web
{

    public class ClientMessage1
    {
        public DateTime SendTimestamp { get; set; }
        public string Message { get; set; }
    }

    public class ClientMessage2
    {
        public string SendTimestamp { get; set; }
        public string Message { get; set; }
    }

    public class ClientMessage3
    {
        public DateTime SendTimestamp { get; set; }
        public string Browser { get; set; }
        public string Message { get; set; }
    }

    [XmlRoot("Request")]
    public class XmlRequest
    {
        public enum CommandType
        {
            Queue,
            Remove
        }

        public struct MessageData
        {
            public string Message;
        }

        public CommandType Command = CommandType.Queue;
        public string User = "";

        [XmlElement("Message")]
        public string[] Messages;
    }


}
